package nl.grol.yakshop.domain.service;

import nl.grol.yakshop.domain.model.Stock;
import nl.grol.yakshop.util.YakShopException;

/**
 * Responsible for calculating amount of goods in stock
 * 
 * @author mgrol
 *
 */
public interface StockCalculatorI {

	/**
	 * Determines the amount of goods in stock on a particular day
	 * 
	 * @param dayOffsetSinceShopOpening
	 * @return
	 * @throws YakShopException
	 */
	Stock determineStockOnDay(int dayOffsetSinceShopOpening) throws YakShopException;

}